package com.party.core.dao.read.crowdfund;

import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.crowdfund.ProjectInfoGradation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @program: party
 * @description: 众筹项目详情_多场------------数据读取
 * @author: Hua Qunhao
 * @create: 2019-03-20 19:02
 **/
@Repository
public interface ProjectInfoGradationReadDao extends BaseReadDao<ProjectInfoGradation> {

    /**
    * @Description:  获取阶段参数人数
    * @Param:
    * @return:
    * @Author: Hua Qunhao
    * @Date: 2019-03-21-0021
    */
    Integer getParticipatingNum(String eventGradationId);


    /***
     * 根据projectGradationId找到ProjectInfoGradation
     * @param projectId
     * @return
     */
    ProjectInfoGradation getByProjectGradationId(@Param(value = "projectId")String projectId);


    ProjectInfoGradation findByProjectId(@Param(value = "projectId") String projectId);

}
